package thinkingJava.chapter19;
import static util.Print.*;
public enum OverrideConstantSpecific {
	NUT, BULT,
	WASHER {
		void f() {
			print("overridden method");
		}
	};
	void f() {
		print("default behavior");
	}
	public static void main(String[] args) {
		for (OverrideConstantSpecific ocs : OverrideConstantSpecific.values()) {
			printnb(ocs + ":");
			ocs.f();
		}
	}
}
